/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package all_pet_iv.webservice;

import com.sforce.soap.enterprise.Connector;
import com.sforce.soap.enterprise.EnterpriseConnection;
import com.sforce.ws.ConnectionException;
import com.sforce.ws.ConnectorConfig;

public class ConexaoForce {
  
  static final String USERNAME = "danielfsbarreto@gmail.com";
  static final String PASSWORD = "allpet2011";
  static final String TOKEN = "aXdfP7x6gHBzR4H5q2nQsv7l3";
  static EnterpriseConnection connection; 

  
  public static EnterpriseConnection getConexao() throws ConnectionException{
        ConnectorConfig config = new ConnectorConfig();
        config.setUsername(USERNAME);
        config.setPassword(PASSWORD+TOKEN);
        connection = Connector.newConnection(config);
        return connection;
  }
}
	
